#include "types.h"
#include "core.h"
#include <curl/curl.h>
#include <stdio.h>
#include <stdlib.h>

using namespace std;

extern dSymbol *T;
extern dList *nil;
// Loader
extern "C" void load_module ();

class dCurlObject : public dObject
{
 public:
  CURL *object;

  dCurlObject ();
  ~dCurlObject ();
  string toString ();
};

// Must be called before all other curl-related methods
void dInitCurl ();
dObject *dCurlVersion (dList *args);

dObject *dNewCurl (dList *args);
dObject *dDelCurl (dList *args);
dObject *dSetOption (dList *args);
dObject *dExecute (dList *args);
